package day240515.work;

public class Myint {
    private int value;
    public static Myint valueOf(int i){
        return new Myint(i);

    }
@Deprecated(since = "8",forRemoval = true)
    public Myint(int value) {
        this.value = value;
    }
    public int intValue(){
        return value;
    }
    public double doubleValue(){
        return (double) value;
    }

    @Override
    public String toString() {
        return ""+this.value;
    }
}
